# Maintainer:
pkgname=sof-firmware
pkgver=2023.09.2
pkgrel=0
pkgdesc="Sound Open Firmware"
url="https://github.com/thesofproject/sof-bin"
arch="noarch"
license="BSD-3-Clause AND MIT AND ISC"
options="!check"
subpackages="$pkgname-doc"
source="https://github.com/thesofproject/sof-bin/releases/download/v$pkgver/sof-bin-$pkgver.tar.gz"
builddir="$srcdir/sof-bin-$pkgver"

provides="sof-bin=$pkgver-r$pkgrel"
replaces="sof-bin"

package() {
	mkdir -p "$pkgdir"/usr/share/licenses \
		"$pkgdir"/lib/firmware/intel

	cp -a sof sof-tplg sof-ace-tplg "$pkgdir"/lib/firmware/intel/

	install -m644 LICENCE.* Notice.* "$pkgdir"/usr/share/licenses/
}

sha512sums="
dbf9385c1900f0b0bda7b8b6a9d1a3b4e5556f0570a1b1b794104179a2e1a12f1e896e36062c4179d7ad1a55078cbbfb348eb10667d736ad99b6cd23c4af0832  sof-bin-2023.09.2.tar.gz
"
